import java.awt.Point;
import org.rsbot.script.methods.Camera;
import org.rsbot.script.methods.Mouse;
import org.rsbot.script.methods.Players;
import org.rsbot.script.methods.Skills;
import org.rsbot.script.wrappers.RSModel;
import org.rsbot.script.wrappers.RSPlayer;

class DebaucherySoulWars$ExtraAntiban extends Thread
{
  private volatile boolean stop = false;
  private volatile boolean pause = false;

  DebaucherySoulWars$ExtraAntiban(DebaucherySoulWars paramDebaucherySoulWars) {
  }
  public void run() {
    try { while (!this.stop) {
        if (DebaucherySoulWars.access$4300(this.this$0)) {
          while (DebaucherySoulWars.access$4300(this.this$0)) {
            Thread.sleep(this.this$0.random(25, 150));
          }
        }
        switch (this.this$0.random(0, 200)) {
        case 3:
          DebaucherySoulWars.access$5200(this.this$0).moveRandomly(this.this$0.random(100, 900));
          break;
        case 70:
          DebaucherySoulWars.access$5300(this.this$0).moveOffScreen();
          Thread.sleep(this.this$0.random(600, 900));
        case 100:
          DebaucherySoulWars.access$5400(this.this$0).moveSlightly();
          break;
        case 130:
          DebaucherySoulWars.access$5500(this.this$0).doHover(22);
          Thread.sleep(200L, 500);
          break;
        case 180:
          DebaucherySoulWars.access$5600(this.this$0).setNorth();
          break;
        case 200:
          RSPlayer localRSPlayer = DebaucherySoulWars.access$5700(this.this$0).getNearest(this.this$0.random(40, 132));
          if ((localRSPlayer == null) || (!localRSPlayer.isOnScreen())) break;
          RSModel localRSModel = localRSPlayer.getModel();
          if (localRSModel != null) {
            Point localPoint = localRSModel.getPoint();
            if (localPoint != null) {
              DebaucherySoulWars.access$5800(this.this$0).move(localPoint, 10);
              DebaucherySoulWars.access$5900(this.this$0).click(false);
            }
          }
          break;
        default:
          Thread.sleep(this.this$0.random(this.this$0.random(6000, 8000), this.this$0.random(19000, 20000)));
        }
      }
    }
    catch (Exception localException)
    {
    }
  }
}